package model

import (
	"github.com/shopspring/decimal"
)

type ShopFlowSource struct {
	ID                      map[string]uint  `json:"_id" bson:"_id"`
	ParentSourceId          uint             `json:"parent_source_id" bson:"parent_source_id"`
	SourceId                uint             `json:"source_id" bson:"source_id"`
	CtmItemClickUv          int              `json:"ctm_item_click_uv" bson:"ctm_item_click_uv"`
	ItemCartUv              int              `json:"item_cart_uv" bson:"item_cart_uv"`
	OrderUv                 int              `json:"order_uv" bson:"order_uv"`
	CtmOrderViewRate        decimal.Decimal  `json:"ctm_order_view_rate" bson:"ctm_order_view_rate"`
	CtmItemClickUvCompare   decimal.Decimal  `json:"ctm_item_click_uv_compare" bson:"ctm_item_click_uv_compare"`
	ItemCartUvCompare       decimal.Decimal  `json:"item_cart_uv_compare" bson:"item_cart_uv_compare"`
	OrderUvCompare          decimal.Decimal  `json:"order_uv_compare" bson:"order_uv_compare"`
	CtmOrderViewRateCompare decimal.Decimal  `json:"ctm_order_view_rate_compare" bson:"ctm_order_view_rate_compare"`
	Source                  TrafficMeta      `json:"source" bson:"source"`
	Children                []ShopFlowSource `json:"children" bson:"children"`
}
